use actix_web::web::{self, ServiceConfig};
use serde::Deserialize;

mod remote;
mod device;
mod firm;
mod user;
mod product;
mod product2;

#[derive(Debug, Deserialize)]
pub struct IdReq {
    pub id: i64
}

pub fn config(cfg: &mut ServiceConfig) {
    let scope = web::scope("/api")
    .configure(remote::register)
    .configure(device::register)
    .configure(firm::register)
    .configure(user::register)
    .configure(product::register)
    .configure(product2::register)
    ;
    cfg.service(scope);
}
